package day21;

import java.io.File;
import java.util.Arrays;
import java.util.Scanner;

public class MainTest2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入项目路径：");
        String proPath = scanner.next();
        File file = new File(proPath);
        file.mkdirs();
        System.out.println("项目创建成功！");
        System.out.println("请输入包名:");
        String packageName = scanner.next();
        String packages[] = packageName.split("\\.");
        System.out.println(Arrays.toString(packages));
        for (String pakg:packages){
            proPath = proPath + "\\"+pakg;
        }
        System.out.println(proPath);

        System.out.println("请输入类名：");
        System.out.println("创建成功：");
        System.out.println("打印项目路径包路径和类名");
    }
}